<extend name="template/base_index" />

<block name="area_header">

    <link rel="stylesheet" href="__CSS__/buysell.css">
    <link rel="stylesheet" href="__CSS__/style.css">
    <link rel="stylesheet" href="__CSS__/uc_i.css">
</block>

<block name="area_body">
    <div class="head">
        <a href="{:U('group/mygrouplist')}"><i class="fa fa-chevron-left"></i></a>
        <span>拼团详情</span>
    </div>




    <div class="pro"  >

            <a href="{:U('Group/good_detail',array('id' => $buy['p_id']))}"><img src="{$buy['img']}" width="80px" height="80px"></a>
        <div style="float:left">
            <ul>
                <li><span><a href="{:U('Group/good_detail',array('id' => $buy['p_id']))}">{$buy['name']}</a></span></li>
                <li>{$buy['synopsis']}</li>
                <li><p>&yen;{$buy['price']}</p>
                </li>
                <li class="gray"><i class="fa fa-clock-o"></i>{$buy['group_sum']}人团</li>
            </ul>
            </div>
        <div class="pror" style="float:right;">
            <if condition="$buy['status'] == -1"><img src="__IMG__/tuanshibai.png" width="60px" height="60px" border="0"></if>
            <if condition="$buy['status'] == 1"><img src="__IMG__/tuanzhengzai.png" width="60px" height="60px" border="0"></if>
            <if condition="$buy['status'] == 2"><img src="__IMG__/tuanchenggong.png" width="60px" height="60px" border="0"></if>
        </div>

    </div>


        <div class="pror" >
            <div style="">
            <if condition="$buy['status']==2">{$buy['group_sum']}人团已成团，棒棒哒</br></if>
            <if condition="$buy['status']==1">还差{$num}人成团,快去呼叫小伙伴吧</br></if>
            <if condition="$buy['status']==-1">拼团太火爆了，已经没货了</br></if>
        </div>

            <volist name="people" id="vo">
                <div class="user_img" ><img src="{$vo['avatar']}" width="40px" height="40px"></div>
            </volist>
            <for start="1" end="$num">
                <div class="user_img" ><img src="__IMG__/dengdai.png" width="40px" height="40px"></div>
            </for>

        </div>


    <div class="pro">
        <div style="text-align:center;">
            <if condition="$buy['status']==2">拼团详情</br></if>
            <if condition="$buy['status']==1">还有{$time}拼团</br></if>
            <if condition="$buy['status']==-1">拼团详情</br></if>
        </div>

        <volist name="people" id="vo">
            <div  >
                <div  >
                    <div style="vertical-align:middle"><img style="border-radius: 25px;" src="{$vo['avatar']}" width="30px" height="30px">
                    </div>
                    <div ></br>
                        <if condition="$vo['status']==1">{$vo.nickname}团长   {$vo['createtime']}开团</if><if condition="$vo['status']==2">{$vo.nickname}团员   {$vo['createtime']}参团</if></div>
                </div>
            </div>
            </br>
        </volist>

    </div>





    <script src="__JS__/jquery-weui.min.js"></script>


</block>